import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import * as serviceWorker from './serviceWorker';
//rem引入    
import './utils/rem'

/*
    React router 形式两种
    HashRouter : 老牌浏览器使用 location.hash +hashchange 事件    形式：#/home
    BrowserRouter : H5的history来完成 popState事件来完成的 形式:/home

    BrowserRouter as Router
        as的作用就是给起了一个别名
*/
import { BrowserRouter as Router } from "react-router-dom"

import './assets/stylesheets/reset.css'


ReactDOM.render(
    <Router>
        <App />
    </Router>
    , document.getElementById('root'));

// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
// Learn more about service workers: https://bit.ly/CRA-PWA
serviceWorker.unregister();
